# 1, 向Mall商城后台登录接口发送登录请求，并查看响应数据
import requests
url = "http://47.108.206.100:8080/admin/login"
# 请求头
# 请求体
body = {
    "username": "admin",
    "password":"macro123"
}
# 发送请求
response = requests.post(url, json=body)
print(response)

# 查看数据
print(response.status_code)
print(response.json())

# 查看json内数据
print(response.json().get("code"))
print(response.json().get("message"))
print(response.json().get("data").get("token"))
